home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Programming / AmigaE / Src / OOmodules / oodoc / scripts / ADoc2AG.sh next >
Encoding:
Text File  |  1996-06-07  |  747 b   |  43 lines

  1. # Turn autodoc files to amigagiude databases.
  2. #
  3. # Second draft July 7 1996 Gregor Goldbach
  4. #
  5. # Usage: makedoc source_dir destination_dir [-buildref]
  6. #
  7. # -buildref builds autodoc.xref, otherwise the one in
  8. # source_dir is used
  9.  
  10.  
  11. if $# < 2; abort; endif
  12.  
  13. set currentdir $_cwd
  14.  
  15. set ad2agpath "Work:Entwicklung/Werkzeuge/AD2AG/"
  16.  
  17. set tempdir $1
  18. set destdir $2
  19. md $destdir
  20.  
  21.  
  22. strcmp $3 "-buildref"
  23.  
  24. if @strcmp( $3 "-buildref" ) = 0; $ad2agpath""AD2AG >NIL: FILES $tempdir TO $tempdir XREF; endif
  25.  
  26.  
  27. $ad2agpath""AD2AG >NIL: FILES $tempdir TO $tempdir XREFFILE $tempdir/autodocs.xref
  28.  
  29. cd $tempdir
  30. # del *.doc <>NIL:
  31. cp -m ~(*.doc) $destdir <>NIL:
  32.  
  33. # cd /
  34. # del $tempdir <>NIL:
  35.  
  36.  
  37. cd $currentdir
  38.  
  39. unset currentdir
  40. unset ad2agpath
  41. unset destdir
  42. unset tempdir
  43.